﻿using DotNetMVC.DAL;
using DotNetMVC.IDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DotNetMVC.DALFactory
{
    public partial class DbSession : IDbSession
    {
        #region 通过 Spring.Net 注入
        //public IAdminLogDal AdminLogDal { get; set; }
        #endregion

        public int SaveChanges()
        {
            return DbContextFactory.GetCurrentDbContext().SaveChanges();
        }
    }
}
